/**
 * @Author: douxuefeng
 * @Date: 2020/9/16 下午4:55
 * @File: msg_handler
 * @Desc: 接收消息中中转器
 */
package msg

import "gitee.com/douxuefeng/go-common/wechat/wechat_office/config"

type OfficeMsg struct {
	cfg *config.WechatOfficeConfig
}

func NewOfficeAccountMsg(cfg *config.WechatOfficeConfig) *OfficeMsg {
	return &OfficeMsg{cfg}
}


type OfficeAccountMsg struct {
	XMLName struct{} `xml:"xml"`
	ToUserName string `xml:"ToUserName,omitempty"`
	FromUserName string `xml:"FromUserName,omitempty"`
	CreateTime string `xml:"CreateTime,omitempty"`
	MsgType string `xml:"MsgType,omitempty"`
	Content string `xml:"Content,omitempty"`
	MsgId string `xml:"MsgId,omitempty"`
	// 图片消息
	PicUrl string `xml:"PicUrl,omitempty"`
	MediaId string `xml:"MediaId,omitempty"`
	// 语音消息
	Format string `xml:"Format,omitempty"`
	Recognition string `xml:"Recognition,omitempty"`
	// 视频消息
	ThumbMediaId string `xml:"ThumbMediaId,omitempty"`
	// 地理位置消息
	Location_X string `xml:"Location_X,omitempty"`
	Location_Y string `xml:"Location_Y,omitempty"`
	Scale string `xml:"Scale,omitempty"`
	Label string `xml:"Label,omitempty"`
	//链接消息
	Title string `xml:"Title,omitempty"`
	Description string `xml:"Description,omitempty"`
	Url string `xml:"Url,omitempty"`
	// 关注/取消关注公众号事件
	Event string `xml:"Event,omitempty"` // subscribe unsubscribe SCAN CLICK VIEW
	//扫描带参数二维码事件
	EventKey string `xml:"EventKey,omitempty"`
	Ticket string `xml:"Ticket,omitempty"`
}